#pragma once

#include"Game.h"
#include"TetrisBody.h"

class Tetris :public Game {
public:

    TetrisBody* m_TetrisBody = NULL;

    int NextGroupStyle = -1;
    ULONGLONG NatualTickCount = 0;


    void initGame();
    void exitGame();
    void timeout();

    bool Callback(ExMessage evt);


    bool initBlock();
    bool CheckBlock();
    bool moveDown(int natual = 0);
    bool moveLeft();
    bool moveRight();
    bool rotate();
};